﻿@model IEnumerable<MVC.Music.Data.Models.TrackModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.TrackID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreatedDate)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.Lyric)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ViettelRingBackToneCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MobiRingBackToneCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VinaRingBackToneCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DownloadPrice)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StreamingPrice)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RingbackSubscriptionPrice)
        </th>
        *@
        <th>
            @Html.DisplayNameFor(model => model.ListenNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DownloadNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Duration)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TrackID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreatedDate)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.Lyric)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ViettelRingBackToneCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MobiRingBackToneCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VinaRingBackToneCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DownloadPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StreamingPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RingbackSubscriptionPrice)
        </td>
        *@
        <td>
            @Html.DisplayFor(modelItem => item.ListenNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DownloadNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Duration)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
